//
//  ZDGoodsListCell.m
//  ZDPension
//
//  Created by 刘甲奇 on 2017/6/14.
//  Copyright © 2017年 maker. All rights reserved.
//

#import "ZDGoodsListCell.h"
#import "UIImageView+WebCache.h"

@interface ZDGoodsListCell()
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet UILabel *goodsNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *saleLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;

@end

@implementation ZDGoodsListCell

- (void)setModel:(ZDGoodsDetailModel *)model
{
    _model = model;
    [self.icon sd_setImageWithURL:[NSURL URLWithString:model.goods_image_url]];
    self.goodsNameLabel.text = model.goods_name;
    self.saleLabel.text = [NSString stringWithFormat:@"销量:%@",model.goods_salenum];
    self.priceLabel.text = [NSString stringWithFormat:@"¥%@",model.goods_price];
}
@end
